#ifndef MCRYPT_H
#define MCRYPT_H
#include <stdio.h>

typedef struct Encrypt {
    int len;
    char *data;
} Encrypt;

// encrypt
Encrypt rsaEncrypt(char *data, char *key_path);

//解密
char *rsa_decrypt(char *str, char *path_key);

Encrypt desEncrypt(char *desPassword, char *data, int length);

Encrypt desDecrypt(char *desPassword, char *data, int length);

#endif